package cn.com.paycn.ken.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.com.paycn.ken.dao.BaseDao;
import cn.com.paycn.ken.hbm.Params;
import cn.com.paycn.ken.service.LogoService;

@Service("logoService")
@Transactional
public class LogoServiceImpl
  implements LogoService
{

  @Autowired
  private BaseDao baseDao;

  public String getLogo()
  {
    Params p = (Params)this.baseDao.get(Params.class, Integer.valueOf(1));
    if (p == null) {
      return "#";
    }
    return p.getStrValue();
  }
}
